//
//  DetailInfoCell.m
//  BigToBig
//
//  Created by liuyi on 7/20/16.
//  Copyright © 2016 cn.cloudtp. All rights reserved.
//

#import "DetailInfoCell.h"

@interface DetailInfoCell ()

@end

@implementation DetailInfoCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self createSubViews];
    }
    return self;
}

- (void)createSubViews{
    self.infoLabel = [[UILabel alloc]initWithFrame:CGRectMake(0, 0, kScreenWidth, self.contentView.height)];
    self.infoLabel.numberOfLines = 0;
    self.infoLabel.font = [UIFont systemFontOfSize:13];

    [self.contentView addSubview:self.infoLabel];
}

- (void)layoutSubviews{
    self.infoLabel.frame = CGRectMake(20, 0, kScreenWidth - 20 * 2, self.height);
    self.infoLabel.textColor = [UIColor lightGrayColor];
    [self bringSubviewToFront:self.contentView];
    self.contentView.backgroundColor = [UIColor whiteColor];
}


- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
